package com.mohe.dangjian.service.interfaces;

import java.util.List;

import com.mohe.dangjian.model.CommunityParty;
import com.mohe.dangjian.model.Member;
import com.mohe.dangjian.model.PartyActivity;
import com.mohe.dangjian.utils.Page;


/**
 * 党建动态 接口
 * 
 * @author wcx
 *
 */
public interface IPartyActivity {

	/**
	 * 根据条件查询党建动态信息
	 * 
	 * @param partyActivity
	 * @param page
	 * @return
	 */
	public List<PartyActivity> getPartyActivityList(PartyActivity partyActivity, Page page);

	/**
	 * 根据条件查询行数
	 * 
	 * @param partyActivity
	 * @return
	 */
	public Integer getCount(PartyActivity partyActivity);

	/**
	 * 保存党建动态信息
	 * 
	 * @param partyActivity
	 * @return
	 */
	public boolean savePartyActivity(PartyActivity partyActivity);
	
	/**
	 * 批量保存党建动态信息
	 * 
	 * @param partyActivity
	 * @return
	 */
	public boolean savePartyActivityList(List<PartyActivity> partyActivityList);

	/**
	 * 根据编号查询信息
	 * 
	 * @param timeKey
	 * @return
	 */
	public PartyActivity getPartyActivityById(Long timeKey);

	/**
	 * 编辑党建动态信息
	 * 
	 * @param partyActivity
	 * @return
	 */
	public boolean updatePartyActivity(PartyActivity partyActivity);

	/**
	 * 根据编号删除信息
	 * 
	 * @param timeKey
	 * @return
	 */
	public boolean delPartyActivity(Long timeKey);

	/**
	 * 获取所有党建动态
	 * 
	 * @return
	 */
	public List<PartyActivity> getAllPartyActivity();
	
	/**
	 * 根据条件查询党建动态信息
	 * @param partyActivity
	 * @return
	 */
	public List<PartyActivity> getPartyActivityList(PartyActivity partyActivity);

}
